#include "PointLabCore/EntityCaster.h"

namespace PointLabCore
{
	PointLabCore::IPointCloud* EntityCaster::ToPointCloud(PointLabCore::Entity* entity)
	{
		if (entity)
		{
			if (entity->isA(CLASS_TYPE::POINT_CLOUD))
			{
				return static_cast<PointLabCore::IPointCloud*>(entity);
			}
			else
			{  
				return nullptr;
			}
		}
	}
}
